package com.aaa.controller;

import com.aaa.entity.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.security.Permission;

/**
 * @author ：zhouhangyong
 * @date ：Created in 2022/6/22 9:43
 * @description：
 * @modified By：
 * @version:
 */
@Controller
@RequestMapping("my")
public class Mycontroller {
    @RequestMapping("myShow.do")
    public String show(Integer id){
        System.out.println(id);
        return "show";
    }
    @RequestMapping("myShow1.do")
    public String show1(Person person){
        System.out.println(person.toString());
        return "show";
    }
    @RequestMapping("myShow2.do")
    public String show2(Person person){
        System.out.println(person.toString());
        return "show";
    }
}
